package com.copa.module.order.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.copa.module.order.domain.entity.OrderEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author copa
 * @createDate 2021-01-09 15:27
 * @function
 */
@Data
public class OrderListDto {

    @ApiModelProperty(value = "订单id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private String username;

    @ApiModelProperty(value = "订单编号")
    private String orderSn;

    @ApiModelProperty(value = "订单状态：0未支付 1已支付未发货 2已发货 3用户取消 4商家取消（支付与未支付都一样）5已发货部分取消或退款")
    private Integer orderStatus;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "订单价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "实际付款")
    private BigDecimal actualPrice;

    @ApiModelProperty(value = "子订单号")
    private String subOrderSn;

    @ApiModelProperty(value = "子订单id")
    private String subOrderId;

    @ApiModelProperty(value = "实付单商品价格")
    private String price;

    @ApiModelProperty(value = "实付单商品数量")
    private Integer num;

    @ApiModelProperty(value = "订单状态详情")
    private String orderDetailStatus;

    @ApiModelProperty(value = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime orderTime;
}
